<!--_meta 作为公共模版分离出去-->
{include file="public/meta"}
<!--/meta 作为公共模版分离出去-->

<title>会员注销 - 会员管理</title>
</head>
<style>
/*分页*/
.pagination {}
.pagination li {display: inline-block;margin-right: -1px;padding: 5px;border: 1px solid #e2e2e2;min-width: 20px;text-align: center;}
.pagination li.active {background: #009688;color: #fff;border: 1px solid #009688;}
.pagination li a {display: block;text-align: center;}
</style>
<body>
<!--_header 作为公共模版分离出去-->
{include file="public/header"}
<!--/_header 作为公共模版分离出去-->

<!--_menu 作为公共模版分离出去-->
{include file="public/menu"}
<!--/_menu 作为公共模版分离出去-->
  
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span> 会员列表<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<div class="mt-20">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>
						<tr class="text-c">
							<th width="80">ID</th>
							<th width="100">用户昵称</th>
							<th width="90">手机</th>
							<th width="130">注销原因</th>
							<th width="130">内容留言</th>
						</tr>
					</thead>
					<tbody>
					{foreach name="userList" item="val"}
						<tr class="text-c">
							<td>{$val.uid}</td>
							<td>{$val.nickname}</td>
							<td>{$val.userPhone}</td>
							<td>{$val.name}</td>
							<td>{$val.content}</td>
						</tr>
						{/foreach}
					</tbody>
				</table> 
						<div id="page">
                  			<div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0">
                			<em class="layui-laypage-em"></em>
            				{$page}
                			</div>
        				</div>
					
                </div>
        </div>
		</article>
	</div>
</section>
<!--_footer 作为公共模版分离出去-->
{include file="public/footer"}
<!--/_footer /作为公共模版分离出去-->
<!-- <script type="text/javascript" src="_My97DatePicker/4.8/WdatePicker.js"></script> -->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUB__/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
$(function(){
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
		]
	});
	$('.table-sort tbody').on( 'click', 'tr', function () {
		if ( $(this).hasClass('selected') ) {
			$(this).removeClass('selected');
		}
		else {
			table.$('tr.selected').removeClass('selected');
			$(this).addClass('selected');
		}
	});
});
/*用户-添加*/
function member_add(title,url,w,h){
	layer_show(title,url,w,h);
}
 /*用户-停用*/
    function member_stop(obj, uid,userFlag) {
        layer.confirm('确认要停用吗?', function (index) {
            $.ajax({
                type: 'post',
                url: '{:url('member/member_stop')}',
                data: {'uid':uid,'userFlag':userFlag},
                dataType: 'json',
                success: function (res) {
                  if (res.state == 1) {
                        window.parent.layer.msg(res.msg, {icon: 1, time: 1000});
                        setTimeout(function () {
                          window.parent.location.reload();
                        }, 1200);
                    } else {
                        window.parent.layer.msg(res.msg, {icon: 1, time: 1000});
                        setTimeout(function () {
                            window.parent.location.reload();
                        }, 1200);
                    }
                },
                error: function (data) {
                     layer.msg('网络错误，请关闭重试!', {icon: 2, time: 1000});
                    bt_sub.removeAttr('disabled');
                },
            });
        });
    }

</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>